package com.ztgf.upload.common;


import lombok.extern.slf4j.Slf4j;
import org.csource.fastdfs.ClientGlobal;
import org.springframework.stereotype.Component;

import java.io.IOException;

@Component
@Slf4j
public class FastDFSConfig {

    static {
        try {
            //加载配置文件
            ClientGlobal.initByProperties("fastdfs-client.properties");
        } catch (Exception e) {
            e.printStackTrace();
            log.error("初始化fastdfs配置文件失败", e);
        }
    }

}
